<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>

<div class="tableContainer" style="width: 900px;">
<display:table name="personsPaginatedList" id="personsTable" keepStatus="true" requestURI="">
	<display:column property="lastName" sortable="true" titleKey="persons.model.lastName" />
	<display:column property="firstName" sortable="true" titleKey="persons.model.firstName"/>
	<display:column property="birthdate" sortable="true" titleKey="persons.model.birthDate" format="{0,date,dd/MM/yyyy}"/>
	<display:column property="address" titleKey="persons.model.address"/>
	<display:column property="postalCd" sortable="true" titleKey="persons.model.postalCode"/>
	<display:column property="cityName" sortable="true" titleKey="persons.model.city"/>
	<display:column property="workPhoneNumber" sortable="true" titleKey="persons.model.telephoneNumber"/>
	<display:column property="electronicAddress" sortable="true" titleKey="persons.model.emailAddress"/>
	<display:column titleKey="persons.actions.title">
		<c:if test="${personsTable.addUrl != null}">
			<a target="_top" href="<spring:url value="${personsTable.addUrl}" htmlEscape="true"/>" title="<spring:message code="persons.actions.add" htmlEscape="true"/>"><img src="<spring:url value="/resources/img/add.png" htmlEscape="true"/>"/></a>
		</c:if>
		<c:if test="${personsTable.showUrl != null}">
			<a target="_top" href="<spring:url value="${personsTable.showUrl}" htmlEscape="true"/>" title="<spring:message code="persons.actions.show" htmlEscape="true"/>"><img src="<spring:url value="/resources/img/information.png" htmlEscape="true"/>"/></a>
		</c:if>
		<c:if test="${personsTable.editUrl != null}">
			<a target="_top" href="<spring:url value="${personsTable.editUrl}" htmlEscape="true"/>" title="<spring:message code="persons.actions.edit" htmlEscape="true"/>"><img src="<spring:url value="/resources/img/pencil.png" htmlEscape="true"/>"/></a>
		</c:if>
	</display:column>
</display:table>
</div>
